package cn.kgc.nnniiiooo.common;

public enum ErrorCodeEnum {
    UNAUTHORIZED(401,"未认证"),
    FORBIDDEN(401,"未授权"),
    TLLEGAL_VALUE(404,"参数非法"),
    OPERATION_FAILED(404,"操作失败"),
    USER_NOT_EXITS(300,"用户不存在"),
    USER_LOGIN_FAILE(700,"登录失败"),
    USER_REGISTER(301,"用户已注册"),
    YZM_ERROR(250,"验证码错误");

    Integer value;
    String message;

    ErrorCodeEnum(Integer value, String message) {
        this.value = value;
        this.message = message;
    }

    ErrorCodeEnum() {
    }

    public Integer getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }
}
